package com.dtream.nacos.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @author : lil0103
 * @description 接口示例
 * @date : 2020/12/9
 */
@Data
@Builder
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
public class ExampleEntity implements Serializable {

    private static final long serialVersionUID = -1858360267957214228L;

    /**
     * 用户id
     */
    @ApiModelProperty(example = "0d99d43c333f49dda69da26d8f27e416")
    private String id;

    /**
     * 用户名称
     */
    @NotBlank(message = "用户名称 不能为空")
    @ApiModelProperty(example = "yx0103", required = true)
    private String userName;

    /**
     * ips
     */
    @NotEmpty
    @ApiModelProperty(value = "ip 数组")
    private List<ExampleIp> exampleIps;

    /**
     * 标识
     */
    @NotBlank(message = " 标识 不能为空")
    @ApiModelProperty(example = "Permit", required = true)
    private String clientFlag;

    /**
     * 客户服务ID
     */
    @NotBlank(message = "客户服务ID 不能为空")
    @ApiModelProperty(example = "0d99d43c333f49dda69da26d8f27e516", required = true)
    private String checkId;
}
